﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace FhlowSharp.Core.FileDef
{
    [Serializable]
    public class FhlowComposite : FhlowComponent
    {
        [XmlArrayItem(typeof(FhlowLeaf)),
        XmlArrayItem(typeof(FhlowComposite)),
        XmlArrayItem(typeof(FhlowComponent))]
        public List<FhlowComponent> Children
        {
            get;
            set;
        }

        public FhlowComposite()
        {
            Children = new List<FhlowComponent>();
        }

        public FhlowComposite(string componentRegEx) : base(componentRegEx)
        {
            Children = new List<FhlowComponent>();
        }
    }
}
